#!/usr/bin/env node

//导出对象

const pi = Math.PI;

const Circle = function(radius) {
    this.diameter = function() {
        return 2 * radius;
    }
    this.circumference = function() {
        return pi * 2 * radius;
    }
    this.area = function() {
        return pi * radius * radius;
    }
}

console.log('\n05-export-object:\n', module);
module.exports = Circle;